package com.uobgroup.ews.uam.core.context;

import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

import com.uobgroup.ews.uam.core.resolver.HibernatePersistenceProviderResolver;

public class ApplicationContextProvider implements ApplicationContextAware {

	   private static ApplicationContext ctx = null;

	   public static ApplicationContext getApplicationContext() {
	      return ctx;
	   }

	   public void setApplicationContext(ApplicationContext applicationContext) {
		  HibernatePersistenceProviderResolver.register();
	      ctx = applicationContext;
	   }
}
